import { defineComponent, reactive } from 'vue'
import DictType from './type'
import Dict from './dict'

export default defineComponent({
  name: 'SysBook',
  setup() {
    const state = reactive({
      dictType: ''
    })

    return () => {
      return (
        <a-row gutter={20}>
          <a-col span={12}>
            <DictType onRow={(id: string) => { state.dictType = id }} />
          </a-col>
          <a-col span={12}>
            <Dict dictType={state.dictType} />
          </a-col>
        </a-row>
      )
    }
  }
})
